package pers.qianyu.auth.constants;

/**
 * JWT 用到的常量
 *
 * @author mizzle rain
 * @date 2020-10-24 20:57
 */
public class JwtConstants {
    /**
     * 角色列表
     */
    public static final String ROLE = "roles";
    /**
     * 创建时间
     */
    public static final String CREATED = "created";
    /**
     * 权限列表
     */
    public static final String AUTHORITIES = "authorities";
    /**
     * 过期时间：24小时
     */
    public static final long EXPIRATION = 60 * 60 * 24L;
    /**
     * 私钥
     */
    public static final String JWT_SECRET_KEY = "uED44b4NzOQlodczbRDMvbtjDMNCiS7BUpe39Mcq";
    /**
     * JWT 前缀
     */
    public static final String TOKEN_PREFIX = "Bearer ";
    /**
     * 加在响应头的哪个字段
     */
    public static final String HTTP_HEADER = "Authorization";
}
